package com.chengfei.thread;

import com.chengfei.thread.demo1.NewThread7;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author chengfei5
 * @date 2019/1/7
 */
public class TestSpring {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(Config.class);
        NewThread7 bean = ac.getBean(NewThread7.class);
        bean.a();
        bean.b();

    }
}
